package com.sright.bcard.enterprise.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.common.service.share.dto.page.PageParamRequest;
import com.sright.bcard.enterprise.dal.entity.AddressDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressDOMapper extends BaseMapper<AddressDO> {
    Integer count(PageParamRequest pageParamRequest);

    List<AddressDO> pageList(PageParamRequest pageParamRequest);

    int deleteAddress(Long id);

    List<AddressDO> selectByEnterpriseIdList(@Param("enterpriseIdList") List<Long> enterpriseIdList);

    List<AddressDO> selectByAddressIds(@Param("addressIds") List<Long> addressIds);
}